<template>
  <button @click="click(rowdata[col])">{{rowdata[col]}}</button>
</template>

<script>

  export default {
    props:['rowdata','col'],
    computed: {

    },
    methods: {
      click: function (value) {
          alert('这个按钮名字是'+value)
      }
    },
    created () {

    }
  }

</script>
